﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZHDJ.PayFactory.Model;

namespace ZHDJ.PayFactory
{
    /// <summary>
    /// 支付工厂
    /// </summary>
    public class PaymentFactory
    {
        public static Payment CreatePaymentFactory(string style)
        {
            Payment pay = null;
            switch (style)
            {
                case "AliPay":
                    pay = new AliPay();
                    break;
                case "WxPay":
                    pay = new WxPay();
                    break;
            }
            return pay;
        }
    }
}
